{extend name="public:_base" /}

{block name="main"}

<div class="page-container">

        <div class="mt-5">

            <table class="layui-table">
                <thead>
                    <tr>
                        <th width="100">单选,多选问题</th>
                        <th width="200">选项</th>
                        <th width="120">选择次数</th>
                    </tr>
                </thead>

                <tbody>
                    <tr></tr>
                    {volist name="list" id="tablelist"}
                        {neq name="tablelist.type" value="2"}
                            {volist name="tablelist['answer']" id="answer" key="k"}
                                <tr>
                                    {if condition="$k eq 1"}
                                        <td rowspan="{$tablelist['rowspan']}">{$tablelist['name']}</td>
                                    {/if}
                                    <td>{$k}: {$answer['name']}</td>
                                    <td>{$answer['nums']}</td>
                                </tr>
                            {/volist}
                        {/neq}
                    {/volist}
                </tbody>
            </table>


            <table class="layui-table" style="margin-top: 20px;">
                <thead>
                    <tr>
                        <th width="100">问答题目</th>
                        <th width="200">回答结果</th>
                    </tr>
                </thead>

                <tbody>
                    {volist name="aa" id="vo"}
                    {volist name="vo" id="answer" key="k"}
                    <tr>
                        <td>{$k}.{$answer['question']}</td>
                        <td>{$answer['answer']}</td>
                    </tr>
                    {/volist}
                    {/volist}
                </tbody>
            </table>

        </div>
</div>
{/block}